package com.open.capacity.trade.service;

import com.open.capacity.common.exception.service.ServiceException;
import com.open.capacity.common.model.Records;
import com.open.capacity.common.web.PageResult;
import com.open.capacity.common.web.Result;
import com.open.capacity.trade.model.RecordsExcel;
import com.open.capacity.trade.vo.TradeRecordsVo;

import java.util.List;
import java.util.Map;

public interface RecordsService {
    PageResult<Records> findRecords(Map<String, Object> params) throws ServiceException;
      PageResult<Records> findRecords() throws ServiceException;
    PageResult<Records> findAll() throws ServiceException;

    PageResult<TradeRecordsVo> findAllRecords(Map<String, Object> params) throws ServiceException;

    Result updateEnabled(Map<String, Object> params) throws ServiceException;

    void deleteRecords(Long id,Long recordsId) throws ServiceException;

    Result saveOrUpdate(Records records) throws ServiceException;

    List<RecordsExcel> findAllRecordsExcel(Map<String, Object> params) throws ServiceException;

    Result insertRecords(Records records) throws ServiceException;

    Result updateEntry(Records records) throws ServiceException;

    Integer updateEntrys(Records records);

    Result updateRecordsAccepted(Records records) throws ServiceException;

    Result updateRecordsBasic(Records records) throws ServiceException;
}
